<?php
/**
 * Created by '卖鱼工作室'.
 * User: malt
 * Date: 2017/12/14
 * Time: 14:06
 * QQ:1294693584
 */

namespace app\home\logic;

use think\Session;

class MemberLogic extends BaseLogic
{
    public function check_logic(){
        if(Session::get('daguan_nickname') && Session::get('daguan_u_id')){
            $this->result = true;
            $this->data['user_name'] = Session::get('daguan_nickname');
            $this->data['uid'] = Session::get('daguan_u_id');
            return $this;
        }else{
            $this->result = false;
            $this->msg = '请先登录';
            return $this;
        }
    }
}